package s19.ch22.ex3;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JLabel;

final class ActionListenerImplementation implements ActionListener {
	private JLabel jLabel;

	public ActionListenerImplementation(JLabel jLabel) {
		this.setjLabel(jLabel);
	}

	@Override
	public void actionPerformed(ActionEvent e) {

		getjLabel().setText("button1 has been press");

	}

	public JLabel getjLabel() {
		return jLabel;
	}

	public void setjLabel(JLabel jLabel) {
		this.jLabel = jLabel;
	}
}